package com.yjd.comm.system.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.system.dto.OperParamDto;
import com.yjd.comm.system.model.MarketParamModel;

import java.util.Map;

/**
 * <b>description</b>：在线参数表业务接口<br>
 * <b>time</b>：2016-02-19 10:48:10 <br>
 * <b>author</b>：  carl
 */
public interface IMarketParamService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public MarketParamModel insert(MarketParamModel model, OperParamDto operParamDto) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(MarketParamModel model, OperParamDto operParamDto) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id_param
	 * @return
	 * @throws Exception
	 */
	public int delete(long id_param, OperParamDto operParamDto) throws Exception;

	/**
	 * 根据Map更新
	 * @param param
	 * @return
	 * @throws Exception
	 */
	public int updateByMap(Map<Object,Object> param, OperParamDto operParamDto)throws Exception;

}
